import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import {getQueryString} from '../utils/util';

import { get } from '../api/getData';

class Introduce extends Component {
    constructor(props) {
        super(props);
        this.state = {
            introduce:''
        }
    }

    componentDidMount() {
        document.title = '乐酷介绍';
        let __this = this;
        get('/api/activity/introduce', {} , function(error, data){
            if(null === error){
                if(data.code === 0){
                    __this.setState({
                        introduce:data.data.introduce_info
                    });
                }
            }
        });
    }

    render() {
        return (<div className='p20'>
            <div dangerouslySetInnerHTML={{__html: this.state.introduce}}></div>
        </div>);
    }
}

export default Introduce;
